package com.xuelang.pipeline.artifact.client.resource.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotEmpty;


/**
 * 制品仓库-组件 查询条件类
 *
 * @author xiwen.zxg
 * @since 2024/5/27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RepositoryComponentQuery {

    /**
     * 制品包uuid
     */
    @NotEmpty(message = "制品包uuid不为空")
    private String packageUuid;
    /**
     * 组件格式不正确.取值范围为: apt,bower,cocoapods,conan,docker,gitlfs,go,helm,maven2,npm,nuget,p2,pypi,r,raw,rubygems,yum.
     */
//    @NotEmpty(message = "组件格式不为空")
//    @ValidEnum(enumClass = Nexus3V1Enum.RepositoryFormatEnum.class, message = "组件格式不正确.取值范围为: apt,bower,cocoapods,conan,docker,gitlfs,go,helm,maven2,npm,nuget,p2,pypi,r,raw,rubygems,yum.")
//    private String format;
    /**
     * 其他多选查询条件，组件groupId，组件nameId，组件id
     */
    private String condition;
    /**
     * 开始日期-格式：yyyy-MM-dd
     */
    private String startDate;
    /**
     * 结束日期-格式：yyyy-MM-dd
     */
    private String endDate;

}
